APP_DIR = 'c:\\work\\code\\envedit'

a = Analysis(
    [
	os.path.join(HOMEPATH,'support\\_mountzlib.py'), 
	os.path.join(HOMEPATH,'support\\useUnicode.py'), 
	os.path.join(APP_DIR, 'envedit.py')],
    pathex=[APP_DIR])

# removing the encoding saves approx 1.3 MB.  Let's see if our utility
# works for everyone.
tcl_excludes = ['demos', 'images', 'encoding', 'http1.0', 'http2.4',
                'msgcat1.3', 'opt0.4', 'tcltest2.2']
tcl_tree = Tree('c:/python24/tcl/tcl8.4', 'tcl/tcl8.4', tcl_excludes)
tk_tree = Tree('c:/python24/tcl/tk8.4', 'tcl/tk8.4', tcl_excludes)

binaries = a.binaries + \
    [('envedit.ico', 
	os.path.join(APP_DIR,'resources/envedit.ico'),'DATA')] + \
    [('envedit.exe.manifest', 
	os.path.join(APP_DIR,'installer/envedit.exe.manifest'),'DATA')] + \
    tcl_tree + tk_tree

pyz = PYZ(a.pure)

exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name='buildenvedit/envedit.exe',
	  icon=os.path.join(APP_DIR, 'resources/envedit.ico'),
          debug=0,
          strip=0,
          upx=0,
          console=0 )

coll = COLLECT( exe,
               binaries,
               strip=0,
               upx=0,
               name='distenvedit')
